<include file="Public:head" title='仪表盘' />
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <include file="Public:left" />
        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="icon-home home-icon"></i><a href="__APP__/{$Think.MODULE_NAME}">首页</a></li>
                    <li class="active">仪表盘</li>
                </ul>
            </div>
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="row">
                            <div class="col-xs-12">
                                <h3 class="header smaller lighter blue">仪表盘</h3>

                                <div class="alert alert-block alert-success">
                                    <button class="close" data-dismiss="alert" type="button">
                                        <i class="icon-remove"></i>
                                    </button>
                                    <i class="icon-ok green"></i>
                                    Welcome to
                                    <strong class="green">
                                        Ace
                                        <small>(v1.2)</small>
                                    </strong>
                                    , the lightweight, feature-rich and easy to use admin template.
                                </div>
                                <div class="row">
                                    <div class="col-xs-12 col-sm-4 widget-container-span">
                                        <div class="widget-box">
                                            <div class="widget-header">
                                                <h5>最新用户</h5>

                                                <div class="widget-toolbar">
                                                    <a href="#" data-action="settings">
                                                        <i class="icon-cog"></i>
                                                    </a>

                                                    <a href="#" data-action="reload">
                                                        <i class="icon-refresh"></i>
                                                    </a>

                                                    <a href="#" data-action="collapse">
                                                        <i class="icon-chevron-up"></i>
                                                    </a>

                                                    <a href="#" data-action="close">
                                                        <i class="icon-remove"></i>
                                                    </a>
                                                </div>
                                            </div>

                                            <div class="widget-body">
                                                <div class="widget-main no-padding">
                                                    <table class="table table-striped table-bordered table-hover">
                                                        <thead class="thin-border-bottom">
                                                            <tr>
                                                                <th>
                                                                    <i class="icon-user"></i>
                                                                    User
                                                                </th>

                                                                <th>
                                                                    <i>@</i>
                                                                    Email
                                                                </th>
                                                                <th class="hidden-480">添加时间</th>
                                                            </tr>
                                                        </thead>

                                                        <tbody>
                                                        <foreach name='users' item='row'>
                                                            <tr>
                                                                <td class=""><a href="{:U('User/detail',array('id'=>$row['id']))}">{$row.name}</a></td>

                                                                <td>
                                                                    <a href="#">{$row.email}</a>
                                                                </td>

                                                                <td class="hidden-480">
                                                                    {$row.logintime|date="Y-m-d H:i",###}
                                                                </td>
                                                            </tr>
                                                        </foreach>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                   
                                    <div class="col-xs-12 col-sm-4 widget-container-span">
                                        <div class="widget-box">
                                            <div class="widget-header">
                                                <h5>最新评论</h5>

                                                <div class="widget-toolbar">
                                                    <a href="#" data-action="settings">
                                                        <i class="icon-cog"></i>
                                                    </a>

                                                    <a href="#" data-action="reload">
                                                        <i class="icon-refresh"></i>
                                                    </a>

                                                    <a href="#" data-action="collapse">
                                                        <i class="icon-chevron-up"></i>
                                                    </a>

                                                    <a href="#" data-action="close">
                                                        <i class="icon-remove"></i>
                                                    </a>
                                                </div>
                                            </div>

                                            <div class="widget-body">
                                                <div class="widget-main no-padding">
                                                    <table class="table table-striped table-bordered table-hover">
                                                        <thead class="thin-border-bottom">
                                                            <tr>
                                                                <th>
                                                                    <i class="icon-user"></i>
                                                                    用户
                                                                </th>
                                                                <th>标题</th>
                                                                <th>内容</th>
                                                                <th class="hidden-480">添加时间</th>
                                                            </tr>
                                                        </thead>

                                                        <tbody>
                                                        <!--<foreach name='comments' item='row'>-->
                                                        <!--    <tr>-->
                                                        <!--        <td><a href="{:U('User/detail',array('id'=>$row['uid']))}">{$row.uid|getUserName}</a></td>-->

                                                        <!--        <td>-->
                                                        <!--            <a href="http://www.sucaihuo.com/{$row.mtype|getMtype}/{$row.tid}" target="_blank">{$row.mtype_name}</a>-->
                                                        <!--        </td>-->
                                                        <!--        <td>{$row.content}</td>-->

                                                        <!--        <td class="hidden-480">-->
                                                        <!--            {$row.addtime|date="Y-m-d H:i",###}-->
                                                        <!--        </td>-->
                                                        <!--    </tr>-->
                                                        <!--</foreach>-->
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                     <div class="col-xs-12 col-sm-4 widget-container-span">
                                        <div class="widget-box">
                                            <div class="widget-header">
                                                <h5>搜索</h5>

                                                <div class="widget-toolbar">
                                                    <a href="#" data-action="settings">
                                                        <i class="icon-cog"></i>
                                                    </a>

                                                    <a href="#" data-action="reload">
                                                        <i class="icon-refresh"></i>
                                                    </a>

                                                    <a href="#" data-action="collapse">
                                                        <i class="icon-chevron-up"></i>
                                                    </a>

                                                    <a href="#" data-action="close">
                                                        <i class="icon-remove"></i>
                                                    </a>
                                                </div>
                                            </div>

                                            <div class="widget-body">
                                                <div class="widget-main">
                                                    <table class="table table-striped table-bordered table-hover">
                                                        <thead class="thin-border-bottom">
                                                            <tr>
                                                                <th>
                                                                    <i class="icon-user"></i>
                                                                    名称
                                                                </th>
                                                                <th>
                                                                    名称2
                                                                </th>
                                                                <th>
                                                                    次数
                                                                </th>
                                                               
                                                            </tr>
                                                        </thead>

                                                        <tbody>
                                                        <foreach name='searches' item='row'>
                                                            <tr>
                                                                <td>{$row.name}</td>
                                                                <td>{$row.keyword2}</td>
                                                                <td>{$row.times}</td>
                                                           </tr>
                                                        </foreach>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-xs-12 col-sm-4 widget-container-span">
                                        <div class="widget-box">
                                            <div class="widget-header">
                                                <h5>积分</h5>

                                                <div class="widget-toolbar">
                                                    <a href="#" data-action="settings">
                                                        <i class="icon-cog"></i>
                                                    </a>

                                                    <a href="#" data-action="reload">
                                                        <i class="icon-refresh"></i>
                                                    </a>

                                                    <a href="#" data-action="collapse">
                                                        <i class="icon-chevron-up"></i>
                                                    </a>

                                                    <a href="#" data-action="close">
                                                        <i class="icon-remove"></i>
                                                    </a>
                                                </div>
                                            </div>

                                            <div class="widget-body">
                                                <div class="widget-main">
                                                    <table class="table table-striped table-bordered table-hover">
                                                        <thead class="thin-border-bottom">
                                                            <tr>
                                                                <th>
                                                                    <i class="icon-user"></i>
                                                                    类型
                                                                </th>

                                                                <th>
                                                                    积分
                                                                </th>
                                                                <th>
                                                                    <i>@</i>
                                                                    用户
                                                                </th>
                                                                <th class="hidden-480">添加时间</th>
                                                            </tr>
                                                        </thead>

                                                        <tbody>
                                                        <foreach name='points' item='row'>
                                                            <tr>
                                                                <td class="">{$row.title}{$row.mtype}</td>

                                                                <td>
                                                                    <a href="{$row.website}" target="_blank">{$row.money}</a>
                                                                </td>
                                                                <td>
                                                                    <a href="#">{$row.uid|getSingleField=###,'user','name'}</a>
                                                                </td>

                                                                <td class="hidden-480">
                                                                    {$row.addtime|date="Y-m-d H:i",###}
                                                                </td>
                                                            </tr>
                                                        </foreach>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-xs-12 col-sm-4 widget-container-span">
                                        <div class="widget-box">
                                            <div class="widget-header">
                                                <h5>系统日志</h5>

                                                <div class="widget-toolbar">
                                                    <a href="#" data-action="settings">
                                                        <i class="icon-cog"></i>
                                                    </a>

                                                    <a href="#" data-action="reload">
                                                        <i class="icon-refresh"></i>
                                                    </a>

                                                    <a href="#" data-action="collapse">
                                                        <i class="icon-chevron-up"></i>
                                                    </a>

                                                    <a href="#" data-action="close">
                                                        <i class="icon-remove"></i>
                                                    </a>
                                                </div>
                                            </div>

                                            <div class="widget-body">
                                                <div class="widget-main">
                                                    <table class="table table-striped table-bordered table-hover">
                                                        <thead class="thin-border-bottom">
                                                            <tr>
                                                                <th>
                                                                    <i class="icon-user"></i>
                                                                    内容
                                                                </th>

                                                                <th>
                                                                    类型
                                                                </th>
                                                                <th>
                                                                    时间
                                                                </th>
                                                               
                                                            </tr>
                                                        </thead>

                                                        <tbody>
                                                        <foreach name='logs' item='row'>
                                                            <tr>
                                                                <td class="">{$row.title}</td>
                                                                <td>{$row.mtype}</td>
                                                                <td>{$row.addtime|date="Y-m-d H:i",###}</td>
                                                           </tr>
                                                        </foreach>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                       <div class="col-xs-12 col-sm-4 widget-container-span">
                                        <div class="widget-box">
                                            <div class="widget-header">
                                                <h5>发货日志</h5>

                                                <div class="widget-toolbar">
                                                    <a href="#" data-action="settings">
                                                        <i class="icon-cog"></i>
                                                    </a>

                                                    <a href="#" data-action="reload">
                                                        <i class="icon-refresh"></i>
                                                    </a>

                                                    <a href="#" data-action="collapse">
                                                        <i class="icon-chevron-up"></i>
                                                    </a>

                                                    <a href="#" data-action="close">
                                                        <i class="icon-remove"></i>
                                                    </a>
                                                </div>
                                            </div>

                                            <div class="widget-body">
                                                <div class="widget-main">
                                                    <table class="table table-striped table-bordered table-hover">
                                                        <thead class="thin-border-bottom">
                                                            <tr>
                                                                <th>
                                                                    <i class="icon-user"></i>
                                                                    内容
                                                                </th>

                                                                <th>
                                                                    类型
                                                                </th>
                                                                <th>
                                                                    时间
                                                                </th>
                                                               
                                                            </tr>
                                                        </thead>

                                                        <tbody>
                                                        <foreach name='logs_send' item='row'>
                                                            <tr>
                                                                <td class="">{$row.title}</td>
                                                                <td>{$row.mtype}</td>
                                                                <td>{$row.addtime|date="Y-m-d H:i",###}</td>
                                                           </tr>
                                                        </foreach>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <include file="Public:setting" />
    </div>
</div>

<include file="Public:foot" />